<template>
    <div class="identityAuth">
        <IndexusrCenter v-if="user.type == 1"></IndexusrCenter>
        <div class="wrapper_list" v-if="user.type == 0">
            <el-card shadow="hover" class="content-card">
                <div class="part">
                    <h3>升级为承运商</h3>
                    <el-card shadow="hover" class="btn respect">
                        <p>我要成为渡石承运商</p>
                        <div class="item-discribtion">
                            <span>我有承运资质，我想承接渡石的运单</span>
                            <span class="dis-right">敬请期待</span>
                        </div>
                    </el-card>
                </div>
            </el-card>
        </div>
    </div>
</template>

<script>
import IndexusrCenter from "./indexusrCenter.vue";

export default {
    name: 'identityAuth',
    components: { IndexusrCenter },
    props: [],
    data() {
        return {
            user: {}
        };
    },
    mounted() {
        this.user = JSON.parse(localStorage.getItem("user") || '{}');
    },
    methods: {},
};
</script>
<style lang="scss" scoped>
.wrapper_list {
    box-sizing: border-box;
    padding-top: 10px;
    height: 300px;
}

.content-card {
    width: 420px;
    border-radius: 10px;
    // box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(187, 187, 187, 1);

    /deep/.el-card__body,
    .el-main {
        padding: 20px 28px;
    }

    .part {
        margin-bottom: 20px;

        h3 {
            color: rgba(78, 89, 105, 1);
            font-size: 28px;
            line-height: 42px;
            font-weight: bold;
        }

        .btn {
            margin-top: 10px;
            border-radius: 5px;
            padding-left: 5px;
            text-align: left;
            cursor: pointer;
            box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(187, 187, 187, 1);

            &.respect {
                background-color: rgba(239, 239, 239, 1);
                pointer-events: none;
            }

            /deep/.el-card__body,
            .el-main {
                padding: 16px;
            }

            p {
                color: rgba(78, 89, 105, 1);
                font-size: 14px;
                line-height: 26px;
            }

            span {
                color: rgba(154, 154, 154, 1);
                font-size: 14px;
            }

            .item-discribtion {
                display: flex;
                justify-content: space-between;

                .dis-right {
                    color: rgba(22, 93, 255, 1);
                }
            }
        }
    }
}
</style>